#ifndef __PUBLIC_H_
#define __PUBLIC_H_

//数据类型重定义
typedef signed char          sint8_t;
typedef signed short int     sint16_t;
typedef signed long int      sint32_t;

typedef unsigned char          uint8_t;
typedef unsigned short int     uint16_t;
typedef unsigned long int      uint32_t;

//定义枚举类型 -> TURE/FALSE位
typedef enum  
{
    TRUE  = (bit)1,
    FALSE = (bit)0
}BOOL_t;

//定义枚举类型 -> BIT位
typedef enum
{
  BIT0 = (uint8_t)(0x01<<0),
  BIT1 = (uint8_t)(0x01<<1),
  BIT2 = (uint8_t)(0x01<<2),
  BIT3 = (uint8_t)(0x01<<3),
  BIT4 = (uint8_t)(0x01<<4),
  BIT5 = (uint8_t)(0x01<<5),
  BIT6 = (uint8_t)(0x01<<6),
  BIT7 = (uint8_t)(0x01<<7),
}BIT_t;

#define SoftWare_Version (uint8_t)10  //V1.0

//结构体类型定义
typedef struct 
{
    void (*Delay_ms)(uint16_t ms);
    void (*Memory_Clr)(uint8_t *,uint16_t );
    void (*Error_Handler)(void);
    void (*Sys_Soft_Reset)(void);
}Public_t;

/* extern variables-----------------------------------------------------------*/
extern Public_t Public;

/**********预编译宏定义**********/
//#define Monitor_Run_Code      //代码运行监控器
//#define Hardware_TEST       //硬件测试

/* extern function prototypes-------------------------------------------------*/ 

#endif
/********************************************************
  End Of File
********************************************************/